﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MongoDB.Model
{
    /// <summary>
    /// Email
    /// </summary>
    public class Mongo_EmailConfig
    {
        /// <summary>
        /// Id
        /// </summary>
        [BsonId]
        public ObjectId ID { get; set; }

        /// <summary>
        /// 发送邮件Smtp服务器
        /// </summary>
        public string SmtpHost { get; set; }

        /// <summary>
        /// 邮件服务器端口
        /// </summary>
        public int? SmtpPort { get; set; }

        /// <summary>
        /// 是否开启SSL
        /// </summary>
        public int IsSsl { get; set; }

        /// <summary>
        /// 邮箱账户
        /// </summary>
        public string EmailAccount { get; set; }

        /// <summary>
        /// 邮箱密码
        /// </summary>
        public string EmailPassword { get; set; }

        /// <summary>
        /// 提醒接收人
        /// </summary>
        public string TipEmail { get; set; }
    }
}
